from django.conf import settings
from django.conf.urls.defaults import *
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('mhlandscaping.apps',
    (r'^admin/', include(admin.site.urls)),

    url(r'^our-services/(?P<slug_service>[a-z0-9-]+)/$', 'service.views.service', name="service"),
    url(r'^our-services/$', 'service.views.services', name="services"),

    url(r'^about/our-area/$', 'world.views.area', name="area"),
    url(r'^about/$', 'world.views.about', name="about"),
    
    url(r'^contact/newsletter/$', 'contact.views.contact', name="newsletter"),
    url(r'^contact/$', 'contact.views.contact', name="contact"),

    url(r'^$', 'home.views.home', name="home"),
)

urlpatterns += patterns('',
        (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
        (r'^docroot/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
)